<?php
// +----------------------------------------------------------------------
// | my [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: $this <498944516.qq.com> 
// +----------------------------------------------------------------------


/**
 * 消息集成
 * @param  to 发送给谁
 * @param  reply 消息体
 * @param  way 发送渠道,如果没有，则使用优先级
 * @return string       
 * @author $this 498944516@qq.com
 */
 // 发送消息
    function send($to,$reply,$way='')
    {
      
      switch ($way) {
          case 'templateMessage':
              template_message($to,$reply);
              break;
          case 'customMessage':
              custom_message($to,$reply);
              break;
          case 'sendGroupMassMessage':
              send_group_mass_message($to,$reply);
              break;
          
          default:
              # code...
              break;
      }
       
        
    }
